package org.nuonuo.sdk.model.req;


import org.nuonuo.sdk.valid.Validator;

import javax.validation.constraints.NotNull;

/**
 * @Version 1.0
 * @Author az
 * @Date 2024-03-28 09:39:55
 * @ClassName InvalidInvoiceReq
 * @Description 作废电子收据
 */
public class InvalidInvoiceReq extends Validator {

    /**
     * 订单号
     */
    @NotNull(message = "订单号必填")
    private String orderno;
    /**
     * 收据流水号
     */
    @NotNull(message = "收据流水号必填")
    private String electronicNo;

    /**
     * 作废原因类型:0-转开发票 1-销货退回 2-服务终止 3-开具有误 4-其他
     */
    @NotNull(message = "作废原因类型必填")
    private String invalidReasonType;

    /**
     * 双方协商	100	作废原因，当invalidReasonType为4时必填
     */
    private String invalidReason;

    public String getOrderno() {
        return orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    public String getElectronicNo() {
        return electronicNo;
    }

    public void setElectronicNo(String electronicNo) {
        this.electronicNo = electronicNo;
    }

    public String getInvalidReasonType() {
        return invalidReasonType;
    }

    public void setInvalidReasonType(String invalidReasonType) {
        this.invalidReasonType = invalidReasonType;
    }

    public String getInvalidReason() {
        return invalidReason;
    }

    public void setInvalidReason(String invalidReason) {
        this.invalidReason = invalidReason;
    }
}
